# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'mainwindow.ui'
#
# Created: Sun Dec 13 13:52:02 2009
#      by: PyQt4 UI code generator 4.6.2
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(711, 526)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.centralwidget)
        self.verticalLayout_2.setSpacing(0)
        self.verticalLayout_2.setMargin(0)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.winLoseWidget = QtGui.QWidget(self.centralwidget)
        self.winLoseWidget.setVisible(False)
        self.winLoseWidget.setObjectName("winLoseWidget")
        self.verticalLayout_6 = QtGui.QVBoxLayout(self.winLoseWidget)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.winLoseLabel = QtGui.QLabel(self.winLoseWidget)
        self.winLoseLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.winLoseLabel.setObjectName("winLoseLabel")
        self.verticalLayout_6.addWidget(self.winLoseLabel)
        self.restartLabel = QtGui.QLabel(self.winLoseWidget)
        self.restartLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.restartLabel.setObjectName("restartLabel")
        self.verticalLayout_6.addWidget(self.restartLabel)
        self.horizontalLayout_8 = QtGui.QHBoxLayout()
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_8.addItem(spacerItem)
        self.restartButton = QtGui.QPushButton(self.winLoseWidget)
        self.restartButton.setObjectName("restartButton")
        self.horizontalLayout_8.addWidget(self.restartButton)
        self.exitButton = QtGui.QPushButton(self.winLoseWidget)
        self.exitButton.setObjectName("exitButton")
        self.horizontalLayout_8.addWidget(self.exitButton)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_8.addItem(spacerItem1)
        self.verticalLayout_6.addLayout(self.horizontalLayout_8)
        self.verticalLayout_2.addWidget(self.winLoseWidget)
        self.widget = QtGui.QWidget(self.centralwidget)
        self.widget.setObjectName("widget")
        self.verticalLayout = QtGui.QVBoxLayout(self.widget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.clientServerBox = QtGui.QGroupBox(self.widget)
        self.clientServerBox.setEnabled(True)
        self.clientServerBox.setObjectName("clientServerBox")
        self.horizontalLayout_4 = QtGui.QHBoxLayout(self.clientServerBox)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.radioButton_2 = QtGui.QRadioButton(self.clientServerBox)
        self.radioButton_2.setObjectName("radioButton_2")
        self.horizontalLayout_4.addWidget(self.radioButton_2)
        self.radioButton = QtGui.QRadioButton(self.clientServerBox)
        self.radioButton.setObjectName("radioButton")
        self.horizontalLayout_4.addWidget(self.radioButton)
        self.verticalLayout.addWidget(self.clientServerBox)
        self.clientBox = QtGui.QGroupBox(self.widget)
        self.clientBox.setVisible(False)
        self.clientBox.setObjectName("clientBox")
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.clientBox)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.horizontalLayout_5 = QtGui.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_5.addItem(spacerItem2)
        self.label_2 = QtGui.QLabel(self.clientBox)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_5.addWidget(self.label_2)
        self.clientPortText = QtGui.QLineEdit(self.clientBox)
        self.clientPortText.setMaximumSize(QtCore.QSize(100, 16777215))
        self.clientPortText.setMaxLength(5)
        self.clientPortText.setObjectName("clientPortText")
        self.horizontalLayout_5.addWidget(self.clientPortText)
        spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_5.addItem(spacerItem3)
        self.verticalLayout_3.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_6 = QtGui.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        spacerItem4 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem4)
        self.label_3 = QtGui.QLabel(self.clientBox)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_6.addWidget(self.label_3)
        self.hostnameText = QtGui.QLineEdit(self.clientBox)
        self.hostnameText.setObjectName("hostnameText")
        self.horizontalLayout_6.addWidget(self.hostnameText)
        spacerItem5 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem5)
        self.verticalLayout_3.addLayout(self.horizontalLayout_6)
        self.connectingLabel = QtGui.QLabel(self.clientBox)
        self.connectingLabel.setVisible(False)
        self.connectingLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.connectingLabel.setObjectName("connectingLabel")
        self.verticalLayout_3.addWidget(self.connectingLabel)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        spacerItem6 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem6)
        self.connectButton = QtGui.QPushButton(self.clientBox)
        self.connectButton.setObjectName("connectButton")
        self.horizontalLayout.addWidget(self.connectButton)
        self.clientCancelButton = QtGui.QPushButton(self.clientBox)
        self.clientCancelButton.setVisible(False)
        self.clientCancelButton.setObjectName("clientCancelButton")
        self.horizontalLayout.addWidget(self.clientCancelButton)
        spacerItem7 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem7)
        self.verticalLayout_3.addLayout(self.horizontalLayout)
        self.verticalLayout.addWidget(self.clientBox)
        self.serverBox = QtGui.QGroupBox(self.widget)
        self.serverBox.setVisible(False)
        self.serverBox.setObjectName("serverBox")
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.serverBox)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        spacerItem8 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem8)
        spacerItem9 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem9)
        self.verticalLayout_4.addLayout(self.horizontalLayout_2)
        self.listeningLabel = QtGui.QLabel(self.serverBox)
        self.listeningLabel.setVisible(False)
        self.listeningLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.listeningLabel.setObjectName("listeningLabel")
        self.verticalLayout_4.addWidget(self.listeningLabel)
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        spacerItem10 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem10)
        self.listenButton = QtGui.QPushButton(self.serverBox)
        self.listenButton.setObjectName("listenButton")
        self.horizontalLayout_3.addWidget(self.listenButton)
        self.serverCancelButton = QtGui.QPushButton(self.serverBox)
        self.serverCancelButton.setVisible(False)
        self.serverCancelButton.setObjectName("serverCancelButton")
        self.horizontalLayout_3.addWidget(self.serverCancelButton)
        spacerItem11 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem11)
        self.verticalLayout_4.addLayout(self.horizontalLayout_3)
        self.verticalLayout.addWidget(self.serverBox)
        spacerItem12 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem12)
        self.verticalLayout_2.addWidget(self.widget)
        self.GlWidget = GlWidget(self.centralwidget)
        self.GlWidget.setVisible(False)
        self.GlWidget.setObjectName("GlWidget")
        self.verticalLayout_5 = QtGui.QVBoxLayout(self.GlWidget)
        self.verticalLayout_5.setSpacing(0)
        self.verticalLayout_5.setMargin(0)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.horizontalLayout_9 = QtGui.QHBoxLayout()
        self.horizontalLayout_9.setSpacing(0)
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.label = QtGui.QLabel(self.GlWidget)
        self.label.setFrameShape(QtGui.QFrame.Box)
        self.label.setTextFormat(QtCore.Qt.PlainText)
        self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label.setObjectName("label")
        self.horizontalLayout_9.addWidget(self.label)
        self.setsLabel = QtGui.QLabel(self.GlWidget)
        self.setsLabel.setFrameShape(QtGui.QFrame.Box)
        self.setsLabel.setTextFormat(QtCore.Qt.PlainText)
        self.setsLabel.setObjectName("setsLabel")
        self.horizontalLayout_9.addWidget(self.setsLabel)
        self.scoreLabel = QtGui.QLabel(self.GlWidget)
        self.scoreLabel.setFrameShape(QtGui.QFrame.Box)
        self.scoreLabel.setTextFormat(QtCore.Qt.PlainText)
        self.scoreLabel.setObjectName("scoreLabel")
        self.horizontalLayout_9.addWidget(self.scoreLabel)
        spacerItem13 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_9.addItem(spacerItem13)
        self.verticalLayout_5.addLayout(self.horizontalLayout_9)
        self.horizontalLayout_7 = QtGui.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        spacerItem14 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem14)
        self.messagesLabel = QtGui.QLabel(self.GlWidget)
        self.messagesLabel.setVisible(False)
        self.messagesLabel.setFrameShape(QtGui.QFrame.Box)
        self.messagesLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.messagesLabel.setObjectName("messagesLabel")
        self.horizontalLayout_7.addWidget(self.messagesLabel)
        spacerItem15 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem15)
        self.verticalLayout_5.addLayout(self.horizontalLayout_7)
        spacerItem16 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout_5.addItem(spacerItem16)
        self.verticalLayout_2.addWidget(self.GlWidget)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 711, 21))
        self.menubar.setObjectName("menubar")
        MainWindow.setMenuBar(self.menubar)

        self.retranslateUi(MainWindow)
        QtCore.QObject.connect(self.radioButton, QtCore.SIGNAL("toggled(bool)"), self.clientBox.show)
        QtCore.QObject.connect(self.radioButton_2, QtCore.SIGNAL("toggled(bool)"), self.serverBox.show)
        QtCore.QObject.connect(self.radioButton, QtCore.SIGNAL("toggled(bool)"), self.serverBox.hide)
        QtCore.QObject.connect(self.radioButton_2, QtCore.SIGNAL("toggled(bool)"), self.clientBox.hide)
        QtCore.QObject.connect(self.exitButton, QtCore.SIGNAL("clicked()"), MainWindow.close)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "CG :: 2009.2 - Trabalho 2 :: Ping Pong 3D", None, QtGui.QApplication.UnicodeUTF8))
        self.winLoseLabel.setStyleSheet(QtGui.QApplication.translate("MainWindow", "font: 75 28pt \"MS Shell Dlg 2\";\n"
"color: rgb(255, 0, 0);", None, QtGui.QApplication.UnicodeUTF8))
        self.winLoseLabel.setText(QtGui.QApplication.translate("MainWindow", "Você perdeu/ganhou a partida!", None, QtGui.QApplication.UnicodeUTF8))
        self.restartLabel.setStyleSheet(QtGui.QApplication.translate("MainWindow", "font: 12pt \"MS Shell Dlg 2\";", None, QtGui.QApplication.UnicodeUTF8))
        self.restartLabel.setText(QtGui.QApplication.translate("MainWindow", "Deseja iniciar uma nova partida?", None, QtGui.QApplication.UnicodeUTF8))
        self.restartButton.setText(QtGui.QApplication.translate("MainWindow", "Sim", None, QtGui.QApplication.UnicodeUTF8))
        self.exitButton.setText(QtGui.QApplication.translate("MainWindow", "Sair", None, QtGui.QApplication.UnicodeUTF8))
        self.clientServerBox.setTitle(QtGui.QApplication.translate("MainWindow", "Tipo de conexão", None, QtGui.QApplication.UnicodeUTF8))
        self.radioButton_2.setText(QtGui.QApplication.translate("MainWindow", "Servidor", None, QtGui.QApplication.UnicodeUTF8))
        self.radioButton.setText(QtGui.QApplication.translate("MainWindow", "Cliente", None, QtGui.QApplication.UnicodeUTF8))
        self.clientBox.setTitle(QtGui.QApplication.translate("MainWindow", "Cliente", None, QtGui.QApplication.UnicodeUTF8))
        self.label_2.setText(QtGui.QApplication.translate("MainWindow", "Porta", None, QtGui.QApplication.UnicodeUTF8))
        self.label_3.setText(QtGui.QApplication.translate("MainWindow", "Servidor", None, QtGui.QApplication.UnicodeUTF8))
        self.hostnameText.setText(QtGui.QApplication.translate("MainWindow", "127.0.0.1", None, QtGui.QApplication.UnicodeUTF8))
        self.connectingLabel.setText(QtGui.QApplication.translate("MainWindow", "Conectando ...", None, QtGui.QApplication.UnicodeUTF8))
        self.connectButton.setText(QtGui.QApplication.translate("MainWindow", "Conectar", None, QtGui.QApplication.UnicodeUTF8))
        self.clientCancelButton.setText(QtGui.QApplication.translate("MainWindow", "Cancelar", None, QtGui.QApplication.UnicodeUTF8))
        self.serverBox.setTitle(QtGui.QApplication.translate("MainWindow", "Servidor", None, QtGui.QApplication.UnicodeUTF8))
        self.listeningLabel.setText(QtGui.QApplication.translate("MainWindow", "Esperando cliente...", None, QtGui.QApplication.UnicodeUTF8))
        self.listenButton.setText(QtGui.QApplication.translate("MainWindow", "Esperar cliente", None, QtGui.QApplication.UnicodeUTF8))
        self.serverCancelButton.setText(QtGui.QApplication.translate("MainWindow", "Cancelar", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setStyleSheet(QtGui.QApplication.translate("MainWindow", "font: 12pt \"MS Shell Dlg 2\";\n"
"background-color: rgb(255, 255, 255);", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("MainWindow", "Você\n"
"Adversário", None, QtGui.QApplication.UnicodeUTF8))
        self.setsLabel.setStyleSheet(QtGui.QApplication.translate("MainWindow", "font: 75 12pt \"MS Shell Dlg 2\";\n"
"background-color: rgb(255, 255, 255);", None, QtGui.QApplication.UnicodeUTF8))
        self.setsLabel.setText(QtGui.QApplication.translate("MainWindow", "0\n"
"0", None, QtGui.QApplication.UnicodeUTF8))
        self.scoreLabel.setStyleSheet(QtGui.QApplication.translate("MainWindow", "font: 75 12pt \"MS Shell Dlg 2\";\n"
"background-color: rgb(255, 255, 255);", None, QtGui.QApplication.UnicodeUTF8))
        self.scoreLabel.setText(QtGui.QApplication.translate("MainWindow", "0\n"
"0", None, QtGui.QApplication.UnicodeUTF8))
        self.messagesLabel.setStyleSheet(QtGui.QApplication.translate("MainWindow", "border-color: rgb(0, 0, 255);\n"
"background-color: rgb(255, 255, 255);\n"
"font: 75 14pt \"MS Shell Dlg 2\";\n"
"color: rgb(255, 0, 0);", None, QtGui.QApplication.UnicodeUTF8))
        self.messagesLabel.setText(QtGui.QApplication.translate("MainWindow", "Bem Vindo", None, QtGui.QApplication.UnicodeUTF8))

from glwidget import GlWidget
